/*
* $Id: Database.h 144 2010-09-11 07:44:56Z volok-aleksej@yandex.ru $
*
* Copyright 2008-2010 by Volokitin Alexey
* All rights reserved
*
*/
#ifndef _DATABASE_H_
#define _DATABASE_H_

#include "Database/InterfaceDb.h"

class CDatabase : public IDatabase
{
	std::tstring m_strDatabaseName;
	bool m_bOpen;
public:
	CDatabase(const std::tstring& strDatabaseName);
	~CDatabase();
	virtual MyTable ExecRequest(const std::tstring& strSqlRequest);
	virtual bool IsExistTable(const std::tstring& strTableName);
	virtual void BeginTransaction(const std::tstring& strNameTransaction);
	virtual void EndTransaction(const std::tstring& strNameTransaction);
	virtual bool IsOpen();
	virtual void Open();
	virtual std::tstring GetDatabaseName();
private:
	virtual void Free();
};

#endif /*_DATABASE_H_*/